<?php
// +----------------------------------------------------------------------
// | OneThink [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.onethink.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: 
// +----------------------------------------------------------------------

namespace Admin\Model;
use Think\Model;

class AuthRuleModel extends Model{
    
    const RULE_URL = 1;
    const RULE_MAIN = 2;
	
	protected $_validate = array(
        array('title','require', '必须填写标题', Model::MUST_VALIDATE ),
        array('module','require', '必须填写模块', Model::MUST_VALIDATE ),
		array('name','require', '必须填写标示', Model::MUST_VALIDATE ),
		array('status','require', '必须填写状态', Model::MUST_VALIDATE ),
       // array('rules','/^(\d,?)+(?<!,)$/', '规则数据不合法', Model::VALUE_VALIDATE , 'regex'  ,Model::MODEL_BOTH ),
    );
}
